<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>02_v-for使用</title>
</head>

<body>
    <div id="app">
        <ul>
            <!-- v-for: 循环遍历用的 -->
            <li v-for="(item,index) in movies">{{index}}---{{item}}</li>
        </ul>
    </div>
</body>
<script type="text/javascript" src="../vue.js"></script>
<script>
    const vm = new Vue({
        el: '#app',
        data: {
            movies: ['肖申克的救赎', '阿甘正传', '蝙蝠侠暗夜骑士', '当幸福来敲门']
        }
    })
</script>

</html>